package com.itheima.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class FallbackController {

    @GetMapping("/fallback")
    public Map<String,String> fallback(){
        Map<String, String> response = new HashMap<>();
        response.put("code", "502");
        response.put("msg", "服务连接超时，请稍后再试试");
        return response;

    }
}
